home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games 1996 July / Amiga Games 1996 #7.iso / s / build-aminet < prev    next >
AmigaDOS Script File  |  1996-04-09  |  2KB  |  76 lines

  1. .key RELEASENAME/A,BASENAME/A,VERSIONFILE/A,SOURCE/A,ROOT/A,IDS/A,CLEAN/S
  2. .bra {
  3. .ket }
  4. ;
  5. ; $VER: build-aminet 37.6 (04 Apr 1996)
  6. ;
  7. ; (C) Copyright 1996 Marius Gröger
  8. ;     All Rights Reserved.
  9. ;
  10. ; AmigaShell script to create an Aminet/Meeting Pearls release.
  11. ; The options in detail:
  12. ;
  13. ;    RELEASENAME
  14. ;        Unfortunately, the filing system used for Aminet CDs is only
  15. ;        capable of maintaining file names up to 21 characters length.
  16. ;        This parameter takes care of this: ideally meaning the same as
  17. ;        BASENAME, it should by an acronym for it.
  18. ;
  19. ;    VERSIONFILE
  20. ;        File to retrieve version/revision from.
  21. ;
  22. ;    BASENAME
  23. ;        Basename of the distribution.
  24. ;
  25. ;    SOURCE
  26. ;        Source file which contains the readme body text. The Aminet header
  27. ;        infos will be prepended.
  28. ;
  29. ;    ROOT
  30. ;        Distribution root directory. Here goes the readme to, and this is
  31. ;        what will be archived.
  32. ;
  33. ;    IDS
  34. ;        Textfile containing Aminet/MP classification and header information
  35. ;
  36. ;    CLEAN
  37. ;        If set, previous readmes are deleted.
  38. ;
  39. ;
  40. ; --------------------- customize this -----------------------
  41. Set LHA "C:Lha"
  42. Set TAR "C:tar"
  43. Set PACKDIR "DH0:Ablage"
  44. ; ----------------- end of customization ---------------------
  45.  
  46. If EQ "CLEAN" {CLEAN}
  47.    Echo "=== removing obsolete readme's ==="
  48.    Delete QUIET "{ROOT}/{RELEASENAME}(%|[0-9])[0-9].[0-9](%|[0-9])(%|[0-9]).readme"
  49. Endif
  50.  
  51. If NOT EXISTS $PACKDIR/{RELEASENAME}
  52.   Makedir $PACKDIR/{RELEASENAME}
  53. EndIf
  54. Delete QUIET $PACKDIR/{RELEASENAME}/#?
  55.  
  56. Set relname "`version file {VERSIONFILE}`"
  57. Set relname {RELEASENAME}`rx "say word('$relname',2)"`
  58. Type {IDS}    >>{ROOT}/$relname.readme
  59. Type {SOURCE} >>{ROOT}/$relname.readme
  60. Copy {ROOT}/$relname.readme $PACKDIR/{RELEASENAME}/
  61.  
  62. Echo "=== creating lha archive ==="
  63. S:PCD //
  64. $LHA a -x -r $PACKDIR/{RELEASENAME}/$relname.lha {BASENAME}/~(#?.(gst|lnk|o|no|opt0[0-9]0)) {BASENAME}.info
  65. S:PCD
  66.  
  67. Echo "=== creating tar archive ==="
  68. $TAR cvCf $PACKDIR $PACKDIR/{RELEASENAME}.tar {RELEASENAME}
  69.  
  70. UnSet relname
  71. UnSet TAR
  72. UnSet LHA
  73.  
  74. Echo "=== ready ==="
  75.  
  76.